package com.junko.dao.back;

import com.junko.core.base.BaseDao;
import com.junko.model.back.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class MenuDao extends BaseDao<Menu> {

    public List<Menu> findTopParentsBySystemId(Integer systemId){
        return getSqlSession().selectList(this.getNameSpace() + ".findTopParentsBySystemId",systemId);
    }
    public List<Menu> findByParentId(Integer parentId){
        return getSqlSession().selectList(this.getNameSpace() + ".findByParentId",parentId);
    }
}